#!/usr/bin/env python

__author__ = 'Crane Chu'


# MODULES
import urllib2

# format master server
#urllib2.urlopen("http://gaestorage0.appspot.com/format")

# format chunk servers
chunkserver_list = ["gaestorage1",
                    "gaestorage2",
                    "gaestorage3",
                    "gaestorage4",
                    "gaestorage5",
                    "gaestorage6",
                    "gaestorage7",
                    "gaestorage8",
                    "dibawu-gaedrive1",
                    "dibawu-gaedrive2",
                    "dibawu-gaedrive3",
                    "dibawu-gaedrive4",
                    "dibawu-gaedrive5",
                    "dibawu-gaedrive6",
                    "dibawu-gaedrive7",
                    "dibawu-gaedrive8",
                    "dibawu-gaedrive9",
                    ]
for chunkid in chunkserver_list:
    urllib2.urlopen("http://" + chunkid + ".appspot.com/format")

print "DONE."
